<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/20
 * Time: 11:38
 */
$email = 'jacky.caaaaahen@sina.com.cn';
//请使用strpos和substr来截取


$domain = strstr($email,"@");
var_dump($domain);
$username = strstr($email,"@",true);
var_dump($username);